"use strict";

const Controller = require("egg").Controller;

class ArticleController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = "hello world";
  }
  async delete() {
    const { ctx } = this;

    ctx.body = `文章 id 是${ctx.params.articleId},评论 id 是 ${ctx.params.commentId}`;
    // console.log(ctx.params.articleId);
    // console.log(ctx.params.commentId);
  }
}

module.exports = ArticleController;
